package com.trip.order.mapper;

import com.trip.common.dto.OrderDTO;
import com.trip.common.dto.LocationDto;
import com.trip.common.entity.TripOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hr
 * @since 2024-09-05
 */
@Mapper
@Repository
public interface TripOrderMapper extends BaseMapper<TripOrder> {

    int checkSameOrder(OrderDTO order);

    //查询司机可接订单信息
    List<TripOrder> getDriverAcceptOrder(LocationDto locationDto);
}
